package com.yuanzong.wuliu.model.system.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yuanzong.wuliu.model.base.BaseModel;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

@ApiModel(value = "SystemUser", description = "系统 - 用户")
@TableName(value ="system_user")
@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
public class SystemUser extends BaseModel implements Serializable {

    private static final long serialVersionUID = 21L;

    @ApiModelProperty(value = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户名")
    @TableField(value = "username")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField(value = "password")
    private String password;

    @ApiModelProperty(value = "昵称")
    @TableField(value = "nickname")
    private String nickname;

    @ApiModelProperty(value = "类型")
    @TableField(value = "type")
    private Integer type;

    @ApiModelProperty(value = "状态")
    @TableField(value = "status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
    private LocalDateTime createTime;

}
